﻿#pragma once


// MyDialog 对话框

class MyDialog : public CDialogEx
{
	DECLARE_DYNAMIC(MyDialog)

public:
	MyDialog(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~MyDialog();
	virtual BOOL OnInitDialog();
// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_DIALOG1 };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
public:
	CEdit edit_name;
	CEdit edit_tele;
	virtual void OnOK();
	CString m_name;
	CString m_tel;
	CEdit edit_height;
	CEdit edit_weight;
	int m_weight;
	int m_height;
	CComboBox combo_grade;
	bool m_sex;
	CString m_grade;
	CSpinButtonCtrl spin_height;
	CSliderCtrl slider_weight;
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	CDateTimeCtrl date_birthday;
	afx_msg void OnStnClickedPicture();
	afx_msg void OnBnClickedLoad();
	bool started;
	afx_msg void OnEnChangeEditName();
	afx_msg void OnEnChangeEditTele();
	afx_msg void OnEnChangeEditHeight();
	CString m_bmp;
};
